#include "Shm.hpp"
#include "Comm.hpp"
#include"Fifo.hpp"
int main()
{
    Shm shm(pathname, projid, CREATER);
    IpcFifo fifo(PATH,FIFO_FILE);
    //文件操作
    FileOper fileOper(PATH,FIFO_FILE);
    fileOper.OpenForRead();
    char*mem=(char*)shm.VirtualAddr();
    int num=26;
    while(true){
        if(fileOper.Read()){
            printf("%s\n",mem);
        }
        else break;
    }
    fileOper.Close();
    return 0;
}